export type SystemInfo = {
  os: string;
  ramTotal: number;
  ramFree: number;
  comfyuiVersion: string;
  pythonVersion: string;
  pytorchVersion: string;
  embeddedPython: boolean;
  argv: string[];
};

export type DeviceInfo = {
  name: string;
  type: string;
  index: number;
  vramTotal: number;
  vramFree: number;
  torchVramTotal: number;
  torchVramFree: number;
};

export type SystemStats = {
  system: SystemInfo;
  devices: DeviceInfo[];
};

export type FileItem = {
  name: string;
  pathIndex: number;
};

export type CheckPoints = {
  cnrId: string;
  enabled: boolean;
  ver: string;
};

export type Model = {
  folders: string[];
  name: string;
};

export type Prompt = {
  prompt_id: string;
  workflow: Record<string, any>;
  extra_data?: {
    client_id?: string;
    extra_pnginfo?: Record<string, any>;
  };
};

export type Queue = {
  queuePending: string[];
  queueRunning: string[];
};

export type ImageUploadResult = {
  name: string;
  subfolder: string;
  type: string;
};

export type NodeInfo = {
  input: Record<string, any>;
  output: string[];
  output_is_list: boolean[];
  output_name: string[];
  name: string;
  display_name: string;
  description: string;
  category: string;
};



